using System;
using System.Collections.Generic;
using System.Text;
using NHibernate;
using NHibernate.Cfg;
using Dominio;

namespace AccesoADatos
{
    public class TesterRepository
    {
        ISession sesion;

        public TesterRepository()
        {
            Configuration cfg = new Configuration();
            cfg.Configure(@"C:\Documents and Settings\Administrador\Mis documentos\Visual Studio 2005\Projects\AccesoADatos\AccesoADatos\hibernate.cfg.xml");
            ISessionFactory sesiones = cfg.BuildSessionFactory();
            sesion = sesiones.OpenSession();
        }
        public Tester getById()
        {
            return null;
        }

        public void save(Tester tester)
        {
            this.sesion.Save(tester);
        }
    }
}
